import http from "@/utils/http";
/**
 * @description: 获取新鲜好物
 * @param {*}
 * @return {*}
 */
export const getNewAPI = () => {
    return http({
    //   url:'/home/new'
    url:'/goods/newGoods'
    })
  }
//   封装人气推荐列表的接口
export const getHotAPI=()=>{
    return http({
        // url:'/home/hot',
        url:'/hot',
        method:'GET'
    })
}
//封装获取所有商品模块
export const getGoodsAPI=()=>{
    return http({
        url:'/goods/allGoods'
    })
}